<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>

<head>
<link HREF="http://drh.home.dyndns.org" REV="made" TITLE="David R. Hanson">
		<link href="style.css" rel="stylesheet" type="text/css" media="all">
		<title>Errata for C Interfaces and Implementations, 1/p</title>
</head>

<body>

<h1>Errata: First Printing</h1>

<p>Corrections to the first printing (Aug. 1996) of <cite>C Interfaces and Implementations: Techniques
for Creating Reusable Software</cite> (Addison-Wesley Professional Computing Series, 1997,
ISBN 0-201-49841-3). In the list below, line +<em>n</em> and line -<em>n</em> refer to the
<em>n</em>th line from the top and bottom of the indicated page.</p>

<p><strong>Page xi, line +5:</strong> disemminate 
<img SRC="images/rightarrow.gif"
ALIGN="BOTTOM" width="17" height="11"> disseminate</p>

<p><strong>Page xvii, line +3:</strong> project 
<img SRC="images/rightarrow.gif"
ALIGN="BOTTOM" width="17" height="11"> projects</p>

<p><strong>Page 6, line -2:</strong> instead at 
<img SRC="images/rightarrow.gif"
ALIGN="BOTTOM" width="17" height="11"> instead of at</p>

<p><strong>Page 10, line +14:</strong> <code>src</code> 
<img SRC="images/rightarrow.gif"
ALIGN="BOTTOM" width="17" height="11"> <code>dst</code></p>

<p><strong>Page 28, line +10:</strong> Many the 
<img SRC="images/rightarrow.gif"
ALIGN="BOTTOM" width="17" height="11"> Many of the</p>

<p><strong>Page 44, line -5:</strong> <code>extern Atom_add</code> 
<img
SRC="images/rightarrow.gif" ALIGN="BOTTOM" width="17" height="11"> <code>extern const char
*Atom_add</code></p>

<p><strong>Page 46, line -12:</strong> <code>Allocated_Failed</code> 
<img
SRC="images/rightarrow.gif" ALIGN="BOTTOM" width="17" height="11"> <code>Allocate_Failed</code></p>

<p><strong>Page 60, line -16:</strong> <code>if (</code><em>e</em><sub>1</sub><code>)</code>
<em>e</em><sub>2</sub>; <img SRC="images/rightarrow.gif" ALIGN="BOTTOM" width="17" height="11"> <code>if (!(</code><em>e</em><sub>1</sub><code>))</code> <em>e</em><sub>2</sub>;</p>

<p><strong>Page 63, line -14:</strong> ADA 
<img SRC="images/rightarrow.gif" ALIGN="BOTTOM" width="17" height="11"> Ada</p>

<p><strong>Page 89, line -2:</strong> in a arena 
<img SRC="images/rightarrow.gif"
ALIGN="BOTTOM" width="17" height="11"> in an arena</p>

<p><strong>Page 94, line -8:</strong> Change to</p>

<blockquote>
  <pre>while (nbytes &gt; arena-&gt;limit - arena-&gt;avail) {</pre>
</blockquote>

<p><strong>Page 106, line +7:</strong> All the 
<img SRC="images/rightarrow.gif"
ALIGN="BOTTOM" width="17" height="11"> Most of the</p>

<p><strong>Page 161, line +3:</strong> homogenous 
<img SRC="images/rightarrow.gif"
ALIGN="BOTTOM" width="17" height="11"> homogeneous</p>

<p><strong>Page 168, line -11:</strong> Change to</p>

<blockquote>
  <pre>if (array-&gt;length == 0)
	array-&gt;array = ALLOC(length*array-&gt;size);
else if (length &gt; 0)</pre>
</blockquote>

<p><strong>Page 169, line +7:</strong> Change to</p>

<blockquote>
  <pre>if (copy-&gt;length &gt;= array-&gt;length</pre>
</blockquote>

<p><strong>Page 183, line +7:</strong> Unlike to 
<img SRC="images/rightarrow.gif"
ALIGN="BOTTOM" width="17" height="11"> Unlike</p>

<p><strong>Page 181, lines -11 and -10:</strong>  <code>Seq-&gt;remlo</code> and <code>Seq-&gt;remhi</code> 
<img
SRC="images/rightarrow.gif" ALIGN="BOTTOM" width="17" height="11">  <code>Seq_remlo</code> and
<code>Seq_remhi</code> </p>

<p><strong>Page 184, line +16:</strong> <code>Ring_seq</code> 
<img
SRC="images/rightarrow.gif" ALIGN="BOTTOM" width="17" height="11"> <code>Ring_ring</code></p>

<p><strong>Page 193, line +16:</strong> incidently 
<img SRC="images/rightarrow.gif"
ALIGN="BOTTOM" width="17" height="11"> incidentally</p>

<p><strong>Page 442, line +9:</strong> <code>current</code> 
<img
SRC="images/rightarrow.gif" ALIGN="BOTTOM" width="17" height="11"> <code>current
&amp;&amp; t != current</code></p>

<p><strong>Page 497, lines +7 and 8:</strong> Move to just before line -11.</p>

<p><a HREF="2.html">Second printing corrections.</a></p>

<hr>

<address>
  <a HREF="http://drh.home.dyndns.org">David Hanson</a><br>
  $Revision: 171 $ $Date: 2007-04-14 17:52:26 +0000 (Sat, 14 Apr 2007) $ 
</address>
</body>
</html>